<?php
/*
	基础设置
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
if($_RQ['op']=='main'){
	if($_RQ['postdata']){
		$post=get_postdata();
		
		$this->plugin_setting('basic',$post);
		exi('设置成功！');
	}
	$setting=$this->plugin_setting('basic');
	$return['item']=$setting;
	$return['htmls']=array(
		'type'=>'edit',
		'edit'=>array(
			array('type'=>'string','name'=>'title','title'=>'名称','help'=>''),
			array('type'=>'image','name'=>'logo','title'=>'LOGO','help'=>''),
			array('type'=>'string','name'=>'copyright','title'=>'版权','help'=>''),
			array('type'=>'image','name'=>'bg_img','title'=>'首页背景','help'=>''),
			array('type'=>'string','name'=>'url','title'=>'服务协议链接','help'=>''),
		),
	);
	exi($return);
}